home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / dbase / techs.zip / TECH5.ZIP / READ.ME < prev   
Text File  |  1980-01-01  |  3KB  |  104 lines

  1. PROGRAM NAME: Pfsxfer.PRG
  2.  
  3. DESCRIPTION:  Program to transfer data from PFS:FILE to dBASE
  4. III.
  5.  
  6. ISSUE: August, 1985
  7. PAGE:  32
  8.  
  9. SOFTWARE VERSIONS:  dBASE III, versions 1.0, 1.1
  10.                     PFS:FILE
  11.  
  12. FUNCTION:  This program will allow you to transfer data from
  13. PFS:FILE to dBASE III.  Make sure that you follow the
  14. instructions below to set up your data in PFS:FILE. 
  15.  
  16. FILES NEEDED:  Pfsxfer.PRG
  17.                PFS print file (see below)
  18.                dBASE III database file             
  19.  
  20. SETUP INSTRUCTIONS:
  21. In PFS:FILE:
  22.  
  23. 1. Make sure each field is no longer than one line.
  24.  
  25. 2. All blank fields must contain a dummy value.  This value
  26.    should be clearly inappropriate in context, such as the z in
  27.    the following PFS record:
  28.  
  29.       first name: Quinn
  30.       last name: Wildman
  31.       address: 10150 W. Jefferson
  32.       city: Culver City  state: CA zip: 90230
  33.       home phone: z
  34.        work phone: (213) 204-5570
  35.       category: z
  36.  
  37.    We use the z as a flag to identify blank fields to dBASE III.
  38.  
  39. 3. Select print from the main menu.
  40.  
  41. 4. Enter no to printing item names.
  42.  
  43. 5. Enter a filename with a .TXT extension, such as 
  44.    Newfile.TXT, for the print destination.
  45.  
  46. 6. Make the number of lines per page equal to the number of 
  47.    fields that you have.
  48.  
  49. 7. Set the number of copies to one.
  50.  
  51. 8. On the print spec menu, enter an z for every field.
  52.  
  53. This will generate a file with records in the following format:
  54.  
  55.         Quinn
  56.         Wildman
  57.         10150 W. Jefferson
  58.         Culver City
  59.         CA
  60.         90230
  61.         z
  62.         (213) 204-5570
  63.         z
  64.      
  65. In dBASE III:
  66.  
  67. 1. Create a database file, Temp.DBF, with one field.  Name the
  68.    field Field1.  Make sure the width is the size of the largest
  69.    field in your PFS file.  For example:
  70.  
  71.         Structure for database:  Temp.DBF
  72.         Field    Field Name   Type         Width
  73.            1     Field1       Character       22       
  74.  
  75. 2. Create a second database file, Final.DBF, with the same number
  76.    of fields as your PFS file.  Name them Field1, Field2, etc.,
  77.    making sure that the field sizes are at least as large as the
  78.    largest corresponding PFS:FILE field.  For instance, if your
  79.    longest first name is "Aloysius," and your longest last name
  80.    is "Phiziskew," your firstname field should be at least 8
  81.    characters wide, and your lastname field at least 10.  Again
  82.    using our sample data, this database file will have the
  83.    following structure:
  84.    
  85.    Structure for database:  Final.DBF
  86.    Field   Field name   Type         Width
  87.      1     Field1       Character        9          
  88.      2     Field2       Character        7          
  89.      3     Field3       Character       22          
  90.      4     Field4       Character       11          
  91.      5     Field5       Character        2          
  92.      6     Field6       Character        5          
  93.      7     Field7       Character        3          
  94.      8     Field8       Character       13          
  95.      9     Field9       Character        1          
  96.    
  97. 3. Type DO Pfsxfer from the dot prompt or within a command file.
  98.    The one-field database filename is the first database file
  99.    created above (in this case, Temp.DBF), and the multi-field
  100.    database filename is the second (Final.DBF here).  The name of
  101.    the PFS print file is the filename entered as the print
  102.    destination, and the dummy name is the flag character entered
  103.    in all the blank fields of your PFS file, in this case z.
  104.